﻿using System;
using System.Windows.Forms;

namespace test
{
    public abstract class MyTab
    {
        protected System.Windows.Forms.TabPage TabPage { get; set; }
        protected System.Windows.Forms.TabControl TopTabControl;
        protected String text;

        public MyTab(TabControl topTabControl, string text)
        {
            this.TopTabControl = topTabControl;
            this.text = text;
            this.TabPage = new System.Windows.Forms.TabPage();
            this.TopTabControl.Controls.Add(this.TabPage);
            Init();
        }

        public abstract void Init();
    }
}